package com.mooo;

import java.util.Scanner;

public class a04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("购物车清单: \n" +
                "1. 宁夏黑枸杞(价格: 30, 数量: 2)\n" +
                "2. 罗汉果茶(价格: 20, 数量: 1)\n" +
                "-----------------------------------\n" +
                "请输入您的选择:\n" +
                "1. 结算所有\n" +
                "2. 结算单个");
        int way = sc.nextInt();
        if(way==1){
            System.out.println("结算成功，您已成功支付80.0元");
        }else{
            System.out.println("请输入您要结算的商品  1. 宁夏黑枸杞   2. 罗汉果茶");
            int goods = sc.nextInt();
            if(goods==1){
                System.out.println("结算成功，您已支付60.0元");
            }else{
                System.out.println("结算成功，您已支付20.0元");
            }
        }
    }
}